home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Email Address Validator.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
1KB
|
55 lines
[SUBJECT]
Description=Validate Email address
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<!-- Cut-N-Paste JavaScript from ISN Toolbox
;
;Copyright 1996, Infohiway Server Network. Restricted use is hereby
;
;granted (both personal and commercial use OK so long as this code is
;
;not *directly* sold), providing this notice is buried somewhere deep
;
;in your HTML document. A link to http://www.infohiway.com is always
;
;appreciated, but is absolutely and positively not necessary. :-) -->
;
;
;<script language="JavaScript">
; /* This is, at best, a perfunctory test of email address
; entry validity. Is there an "@" sign and sufficient
; letters prefixing it. Alert user if questioned. */
; function emailCheck() {
; txt=document.isn.email.value;
; if (txt.indexOf("@")<3){
; alert("I'm sorry. This email address seems wrong. Please"
; +" check the prefix and '@' sign.");
; return false;
; }
; return true;
; }
;
;</script>
[BODY_TEXT]
;<form name="isn" onSubmit="return emailCheck()">
;
;`Caption`<br>
;<input type="text" name="email" size="40" value="" onBlur="emailCheck()"><br><br>
;
;<input type="submit" name="html1" value=" Submit ">
;
;</form>
[`Caption`]
Kind=S
Value=Email checker: